package com.dfiov.cloud.msmtools.controller;


import com.dfiov.cloud.msmtools.entity.vo.msmtools.OpUserVo;
import com.dfiov.cloud.msmtools.mapper.entity.msmtools.OptUserDo;
import com.dfiov.cloud.msmtools.service.business.OpUserService;
import org.springframework.web.bind.annotation.*;
import com.pateo.qingcloud.framework.common.base.BaseRestResponse;

import javax.annotation.Resource;

@RestController
@RequestMapping("/msmtools/opUser")
public class OpUserController {

    @Resource
    private OpUserService opUserService;

    @PostMapping("/getOpUser")
    public BaseRestResponse<OptUserDo> getOpUser(@RequestBody OpUserVo opUserVo) {
        return opUserService.getOpUser(opUserVo);
    }

    @GetMapping("/updateOpUserLockStatus")
    public BaseRestResponse<String> updateOpUserLockStatus(@RequestParam String userName) {
        return opUserService.updateOpUserLockStatus(userName);
    }


}
